package com.dx.common.table.ppt;

import java.sql.Timestamp;
import java.util.Objects;


/**
 * Ret_tool_alarmId entity. @author MyEclipse Persistence Tools
 */

public class Ret_tool_alarmId  implements java.io.Serializable {


    // Fields    

     private String tool_id_fk;
     private Timestamp start_timestamp;
     private Timestamp end_timestamp;
     private String alarm_code;

    // Constructors

    /** default constructor */
    public Ret_tool_alarmId() {
    }

    public Ret_tool_alarmId(String tool_id_fk, Timestamp start_timestamp, Timestamp end_timestamp, String alarm_code) {
        this.tool_id_fk = tool_id_fk;
        this.start_timestamp = start_timestamp;
        this.end_timestamp = end_timestamp;
        this.alarm_code = alarm_code;
    }

    /** full constructor */


   
    // Property accessors
    public String getTool_id_fk() {
        return tool_id_fk;
    }public void setTool_id_fk(String tool_id_fk) {
        this.tool_id_fk = tool_id_fk;
    }public Timestamp getStart_timestamp() {
        return start_timestamp;
    }public void setStart_timestamp(Timestamp start_timestamp) {
        this.start_timestamp = start_timestamp;
    }public Timestamp getEnd_timestamp() {
        return end_timestamp;
    }public void setEnd_timestamp(Timestamp end_timestamp) {
        this.end_timestamp = end_timestamp;
    }public String getAlarm_code() {
        return alarm_code;
    }public void setAlarm_code(String alarm_code) {
        this.alarm_code = alarm_code;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Ret_tool_alarmId that = (Ret_tool_alarmId) o;
        return Objects.equals(tool_id_fk, that.tool_id_fk) &&
                Objects.equals(start_timestamp, that.start_timestamp) &&
                Objects.equals(end_timestamp, that.end_timestamp) &&
                Objects.equals(alarm_code, that.alarm_code);
    }

    @Override
    public int hashCode() {
        return Objects.hash(tool_id_fk, start_timestamp, end_timestamp, alarm_code);
    }
}